<?php
/**
 * 文件管理模版
 * $Id: manage_files.php 203 2010-11-16 10:55:19Z bwanglei@gmail.com $
 */?>
<div id="main"><table width="100%"><tr style="font-weight:bold;"><td>ID</td><td>文件</td><td>删除</td></tr>
<?php
foreach ($files as $file) {
	?>
	<tr><td><?php echo $file['id'];?></td>
	<td><a href="<?php echo $file['url'];?>"><?php echo $file['name'];?></a></td>
	<td><form action="<?php echo $blogUrl;?>/admin/manage_files.php?<?php echo rebuild_query_string(array('action'=>'del'));?>" method="post">
		<input type="hidden" value="<?php echo $file['id'];?>" name="id_file" />
		<input type="submit" onclick="return confirm('确定要删除这个文件吗？');" value="删除" />
	</form></td></tr>
	<?php
}?></table>

<!-- 页面导航-->
<div id="pagenavi">
<?php
if ($pre_bookmark) {
	$b = array('b'=>$pre_bookmark);
	?>
	<div id="pre_page"><a class="sided" href="<?php echo $blogUrl;?>/admin/manage_files.php?<?php echo rebuild_query_string($b);?>">上一页</a></div>
	<?php
}

if ($next_bookmark) {
	$b = array('b'=>$next_bookmark);
	?>
	<div id="next_page"><a class="sided" href="<?php echo $blogUrl;?>/admin/manage_files.php?<?php echo rebuild_query_string($b);?>">下一页</a></div>
	<?php
}?>
</div></div>
